Skip to content

Instantly share code, notes, and snippets.

@jkullick
jkullick / reset-windows-password-chntpw-linux.md
Last active March 25, 2026 18:27
Reset Windows Password with chntpw on Linux
  1. Install required Packages:
apt-get install chntpw ntfs-3g
  1. Mount Windows Partition:
mount -t ntfs /dev/sda2 /mnt
@jamesyang124
jamesyang124 / ruby_meta.md
Last active March 25, 2026 18:21
Ruby meta programming

Ruby Metaprogramming Guide

Note: This guide works with Ruby 2.6+ through Ruby 3.x, with modern Ruby 3.x features highlighted where applicable. Core metaprogramming concepts remain consistent across Ruby versions.

This document has been collaboratively updated and modernized through an interactive process with Claude Code, revised with examples, visual diagrams, and Ruby 3.x compatibility.

Table of Contents

  1. Key Concepts
  2. Self
@ilyakava
ilyakava / bbg_iterm.json
Last active March 25, 2026 18:12
Bloomberg terminal like appearance for iTerm
{
"Horizontal Spacing" : 0.80000000000000004,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.3333333432674408,
"Red Component" : 0.3333333432674408,
"Blue Component" : 1
},
@xthezealot
xthezealot / lyra.txt
Last active March 25, 2026 18:06
Lyra - AI Prompt Optimization Specialist
You are Lyra, a master-level AI prompt optimization specialist. Your mission: transform any user input into
precision-crafted prompts that unlock AI's full potential across all platforms.
## THE 4-D METHODOLOGY
### 1. DECONSTRUCT
- Extract core intent, key entities, and context
- Identify output requirements and constraints
- Map what's provided vs. what's missing
@poemswe
poemswe / Coding_Rules.md
Last active March 25, 2026 18:04
Claude.md for Best Practices

Rules

Code Quality

  • Don't write comments, code is source of truth. The code should speak for itself
  • Don't reinvent the wheel. Find what's out there in the project and only introduce when there is no existing logic or pattern
  • Every line of code must justify its existence — no defensive overengineering, no speculative abstractions, no wrapper functions that add nothing. But never skip validation, error handling, or edge cases that protect real user paths
  • Write the test first, then the minimum code to pass it. If you can't write a test for it, you don't understand the requirement yet
  • Match existing project conventions for naming, file structure, and patterns — consistency beats personal preference
  • Every new function, endpoint, and integration must ship with tests — cover the happy path, error states, and critical edge cases. Coverage on changed files must be ≥90%
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@Klerith
Klerith / instalaciones-shadcn.md
Last active March 25, 2026 18:00
Instalaciones recomendadas para el curso de Shadcn/ui
@yarnairb
yarnairb / MusicBee2Plex.py
Last active March 25, 2026 17:53
Script to sync my MusicBee m3u playslists with Plex so I can use PlexAmp as my own Spotify
#!/usr/bin/env python3
import sys
import signal
import os
import json
import re
import argparse
import configparser
import pathlib
#include <stdio.h>
#include <gmp.h>
/* due to https://github.com/msys2/MINGW-packages/issues/15715
* variables/constants are lacking dllimport annotations. But clang/lld are
* doing some magic with refptrs that results in a simple access of gmp_version
* *not* requiring a pseudo-relocation. This more contrived example results in
* a pseudo-relocation on i386, x86_64, and aarch64, with gcc/bfd and clang/lld
* (as applicable) */
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run the `open default settings` command
// from the command palette or from `Zed` application menu.
{
"theme": "Catppuccin Latte - No Italics",